package com.ittony.auth.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ittony.auth.service.SysMenuService;
import com.ittony.auth.service.SysUserService;
import com.ittony.model.system.SysUser;
import com.ittony.vo.system.LoginVo;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "SystemLoginAdmin")
@RestController
@RequestMapping("/admin/system/index")
public class IndexController {

    @Autowired
    private SysUserService sysUserService;

    @Autowired
    private SysMenuService sysMenuService;

    @PostMapping("/login")
    public Result login(@RequestBody LoginVo loginVo) throws Exception {
        QueryWrapper<SysUser> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("username", loginVo.getUsername());
        sysUserService.
    }
}
